<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9"/>
<title>NGUI: UIRect.AnchorPoint Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI
   &#160;<span id="projectnumber">3.11.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_u_i_rect_1_1_anchor_point.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_u_i_rect_1_1_anchor_point-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">UIRect.AnchorPoint Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af588ebfb77b397723ac72a07fd6ee38c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af588ebfb77b397723ac72a07fd6ee38c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>AnchorPoint</b> (float relative)</td></tr>
<tr class="separator:af588ebfb77b397723ac72a07fd6ee38c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ac0430bfd3f314bf969574c2ba32032"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_rect_1_1_anchor_point.html#a8ac0430bfd3f314bf969574c2ba32032">Set</a> (float relative, float absolute)</td></tr>
<tr class="memdesc:a8ac0430bfd3f314bf969574c2ba32032"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that sets the anchor's values.  <a href="#a8ac0430bfd3f314bf969574c2ba32032">More...</a><br /></td></tr>
<tr class="separator:a8ac0430bfd3f314bf969574c2ba32032"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3450af418011b145770f5e235bbebe16"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_rect_1_1_anchor_point.html#a3450af418011b145770f5e235bbebe16">Set</a> (Transform target, float relative, float absolute)</td></tr>
<tr class="memdesc:a3450af418011b145770f5e235bbebe16"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that sets the anchor's values.  <a href="#a3450af418011b145770f5e235bbebe16">More...</a><br /></td></tr>
<tr class="separator:a3450af418011b145770f5e235bbebe16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7e8aba6a6470a9b98f2ff004a0ea3d1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_rect_1_1_anchor_point.html#aa7e8aba6a6470a9b98f2ff004a0ea3d1">SetToNearest</a> (float abs0, float abs1, float abs2)</td></tr>
<tr class="memdesc:aa7e8aba6a6470a9b98f2ff004a0ea3d1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top).  <a href="#aa7e8aba6a6470a9b98f2ff004a0ea3d1">More...</a><br /></td></tr>
<tr class="separator:aa7e8aba6a6470a9b98f2ff004a0ea3d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af65b21c020de5947401d7c31bb5f7f36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_rect_1_1_anchor_point.html#af65b21c020de5947401d7c31bb5f7f36">SetToNearest</a> (float rel0, float rel1, float rel2, float abs0, float abs1, float abs2)</td></tr>
<tr class="memdesc:af65b21c020de5947401d7c31bb5f7f36"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset.  <a href="#af65b21c020de5947401d7c31bb5f7f36">More...</a><br /></td></tr>
<tr class="separator:af65b21c020de5947401d7c31bb5f7f36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a878589cbb14b94f509a433d4b88e2a41"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_rect_1_1_anchor_point.html#a878589cbb14b94f509a433d4b88e2a41">SetHorizontal</a> (Transform <a class="el" href="class_u_i_rect.html#aa4332a5373019290da50a2537f800139">parent</a>, float localPos)</td></tr>
<tr class="memdesc:a878589cbb14b94f509a433d4b88e2a41"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.  <a href="#a878589cbb14b94f509a433d4b88e2a41">More...</a><br /></td></tr>
<tr class="separator:a878589cbb14b94f509a433d4b88e2a41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0aa395a5df17d4f0fd7c6780b8dfe00d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_rect_1_1_anchor_point.html#a0aa395a5df17d4f0fd7c6780b8dfe00d">SetVertical</a> (Transform <a class="el" href="class_u_i_rect.html#aa4332a5373019290da50a2537f800139">parent</a>, float localPos)</td></tr>
<tr class="memdesc:a0aa395a5df17d4f0fd7c6780b8dfe00d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact.  <a href="#a0aa395a5df17d4f0fd7c6780b8dfe00d">More...</a><br /></td></tr>
<tr class="separator:a0aa395a5df17d4f0fd7c6780b8dfe00d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa92d166f97f5c8f2b50a31147c125c29"><td class="memItemLeft" align="right" valign="top">Vector3[]&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_rect_1_1_anchor_point.html#aa92d166f97f5c8f2b50a31147c125c29">GetSides</a> (Transform relativeTo)</td></tr>
<tr class="memdesc:aa92d166f97f5c8f2b50a31147c125c29"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function that returns the sides the anchored point is anchored to.  <a href="#aa92d166f97f5c8f2b50a31147c125c29">More...</a><br /></td></tr>
<tr class="separator:aa92d166f97f5c8f2b50a31147c125c29"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a548a1189297f3faf81046811cc9c7fc8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a548a1189297f3faf81046811cc9c7fc8"></a>
Transform&#160;</td><td class="memItemRight" valign="bottom"><b>target</b></td></tr>
<tr class="separator:a548a1189297f3faf81046811cc9c7fc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a052da49144f52fdedc8da0de0ac992c5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a052da49144f52fdedc8da0de0ac992c5"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>relative</b> = 0f</td></tr>
<tr class="separator:a052da49144f52fdedc8da0de0ac992c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed6e7c5cfae910edc7f03e657e11dd3f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed6e7c5cfae910edc7f03e657e11dd3f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>absolute</b> = 0</td></tr>
<tr class="separator:aed6e7c5cfae910edc7f03e657e11dd3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaca44cfc3b0f997c77385f150b1880cf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaca44cfc3b0f997c77385f150b1880cf"></a>
<a class="el" href="class_u_i_rect.html">UIRect</a>&#160;</td><td class="memItemRight" valign="bottom"><b>rect</b></td></tr>
<tr class="separator:aaca44cfc3b0f997c77385f150b1880cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aed86eec7f32a9434f6014ec15af327d0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed86eec7f32a9434f6014ec15af327d0"></a>
Camera&#160;</td><td class="memItemRight" valign="bottom"><b>targetCam</b></td></tr>
<tr class="separator:aed86eec7f32a9434f6014ec15af327d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aa92d166f97f5c8f2b50a31147c125c29"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Vector3 [] UIRect.AnchorPoint.GetSides </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>relativeTo</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience function that returns the sides the anchored point is anchored to. </p>

</div>
</div>
<a class="anchor" id="a8ac0430bfd3f314bf969574c2ba32032"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIRect.AnchorPoint.Set </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>relative</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>absolute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience function that sets the anchor's values. </p>

</div>
</div>
<a class="anchor" id="a3450af418011b145770f5e235bbebe16"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIRect.AnchorPoint.Set </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>target</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>relative</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>absolute</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Convenience function that sets the anchor's values. </p>

</div>
</div>
<a class="anchor" id="a878589cbb14b94f509a433d4b88e2a41"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIRect.AnchorPoint.SetHorizontal </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>localPos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact. </p>

</div>
</div>
<a class="anchor" id="aa7e8aba6a6470a9b98f2ff004a0ea3d1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIRect.AnchorPoint.SetToNearest </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>abs0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>abs1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>abs2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the anchor's value to the nearest of the 3 possible choices of (left, center, right) or (bottom, center, top). </p>

</div>
</div>
<a class="anchor" id="af65b21c020de5947401d7c31bb5f7f36"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIRect.AnchorPoint.SetToNearest </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rel0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rel1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>rel2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>abs0</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>abs1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>abs2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the anchor's value given the 3 possible anchor combinations. Chooses the one with the smallest absolute offset. </p>

</div>
</div>
<a class="anchor" id="a0aa395a5df17d4f0fd7c6780b8dfe00d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIRect.AnchorPoint.SetVertical </td>
          <td>(</td>
          <td class="paramtype">Transform&#160;</td>
          <td class="paramname"><em>parent</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>localPos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the anchor's absolute coordinate relative to the specified parent, keeping the relative setting intact. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/WorkDir/Unity3D_Work/taidou_arpg/Assets/NGUI/Scripts/Internal/UIRect.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_u_i_rect.html">UIRect</a></li><li class="navelem"><a class="el" href="class_u_i_rect_1_1_anchor_point.html">AnchorPoint</a></li>
    <li class="footer">Generated on Sat Jan 4 2020 22:30:28 for NGUI by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9 </li>
  </ul>
</div>
</body>
</html>
